package com.ruoyi.post.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.security.core.userdetails.User;

/**
 * 发帖管理对象 post
 * 
 * @author gu
 * @date 2025-05-18
 */
@Data
public class Post extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 帖子内容 */
    @Excel(name = "帖子内容")
    private String content;

    /** 图片 */
    @Excel(name = "图片")
    private String imgs;

    /** 是否删除 */
    private Long isDeleted;

    /** 用户id */
    private Long userId;

    private com.ruoyi.user.domain.User user;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("imgs", getImgs())
            .append("createTime", getCreateTime())
            .append("isDeleted", getIsDeleted())
            .append("userId", getUserId())
            .toString();
    }
}
